using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.IO;

/// <summary>
/// AKS 1.1 - HiSoftware Inc.
/// CA design: Robert B. Yonaitis
/// </summary>

namespace AKSAdapters
{
    public class AKS_Blog_NewItem_CalendarIFRAME : System.Web.UI.Adapters.ControlAdapter
    {
        public AKS_Blog_NewItem_CalendarIFRAME()
        {

        }

        protected override void Render(HtmlTextWriter output)
        {
            StringBuilder sb = new StringBuilder();
            HtmlTextWriter writer = new HtmlTextWriter(new StringWriter(sb));
            base.Render(writer);
            sb.Replace("title=\"Select a date from the calendar.\"></IFRAME>", "title=\"Select a date from the calendar.\">The calendar Control requires IFRAME support, please contact your System Administrator</IFRAME>");
            output.Write(sb.ToString());
        }
    }
}